{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "b8a0fa62",
   "metadata": {},
   "source": [
    "-----\n",
    "* week08\n",
    "* 2023-11-17\n",
    "* python课程\n",
    "-----"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8654d6dc",
   "metadata": {},
   "source": [
    "# 1.上节课：我们怎么知道“李鹏”在列表里面"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "7e032241",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\",\"李四\",\"小明\",\"Jalex\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "8f22c83d",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "张三\n",
      "李四\n",
      "小明\n",
      "jalex\n"
     ]
    }
   ],
   "source": [
    "# 用i来查询“张三”是否存在列表中\n",
    "for i in name_list:\n",
    "    print(i)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "0b3c2cb0",
   "metadata": {},
   "source": [
    "* 思考：我怎么知道“李鹏”在数据表里面呢？\n",
    "> 1. 先查询\n",
    "> 2. 后删除"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2a94319b",
   "metadata": {},
   "source": [
    "### 1.1 for循环查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "dec758d5",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "张三\n"
     ]
    }
   ],
   "source": [
    "for i in name_list:\n",
    "    if i == \"张三\":\n",
    "        print(i)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "366bc765",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "张三\n"
     ]
    }
   ],
   "source": [
    "for i in name_list:\n",
    "    if i == \"张三\":\n",
    "        print(i)\n",
    "        name_list.remove(\"张三\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "id": "485cc58e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "9e276ea4",
   "metadata": {},
   "source": [
    "### 1.2 in方法【true表示数据在】"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "9bbb0863",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "True"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\"小明\" in name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "id": "0afe0b37",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.remove(\"小明\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "b21e1263",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'jalex']"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e622cf77",
   "metadata": {},
   "source": [
    "# 2.列表的其他方法"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "363e5552",
   "metadata": {},
   "source": [
    "### 2.1 clear清空"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "id": "c8cae794",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', 'jalex']"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# clear清空，清除列表中的所有元素\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "id": "a4aae72f",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.clear()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "id": "af9cbf54",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[]"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "18f051c4",
   "metadata": {},
   "source": [
    "### 2.2 count统计元素数量"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "id": "93142e82",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四']"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# count查看list中统计元素的数量\n",
    "name_list = [\"张三\", \"李四\", \"小明\", \"jalex\", \"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "id": "92a0e442",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "2"
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list.count(\"李四\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3ce12c78",
   "metadata": {},
   "source": [
    "### 2.3 案例\n",
    "### 假设1000次，统计1-6各出现几次\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "8de32d70",
   "metadata": {},
   "outputs": [],
   "source": [
    "import random"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 42,
   "id": "bbb40921",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 是不是需要一个空列表来存放我们的数据呢\n",
    "random_list = []\n",
    "#增加数据到列表里面【append】\n",
    "for i in range(10000):\n",
    "    random_list.append(random.randint(1,6))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 43,
   "id": "cd1a7cff",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type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 4, 5, 1, 6, 5, 5, 3, 1, 1, 6, 2, 4, 3, 6, 5, 6, 6, 5, 2, 3, 5, 3, 6, 3, 4, 3, 2, 3, 2, 6, 2, 1, 1, 2, 3, 4, 1, 5, 2, 1, 6, 1, 2, 4, 1, 2, 5, 1, 3, 5, 4, 3, 4, 4, 3, 5, 4, 4, 2, 1, 1, 1, 4, 4, 5, 5, 1, 2, 6, 6, 5, 2, 5, 5, 4, 3, 5, 3, 2, 4, 5, 4, 6, 2, 6, 1, 2, 5, 6, 3, 3, 4, 5, 3, 3, 5, 6, 1, 2, 5, 5, 2, 2, 2, 3, 1]\n"
     ]
    }
   ],
   "source": [
    "print(random_list)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "id": "129c4003",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "1656"
      ]
     },
     "execution_count": 44,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "random_list.count(1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "id": "ef79ce50",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1 1656 0.01656\n",
      "2 1699 0.01699\n",
      "3 1629 0.01629\n",
      "4 1655 0.01655\n",
      "5 1653 0.01653\n",
      "6 1708 0.01708\n"
     ]
    }
   ],
   "source": [
    "for i in range(1,7):\n",
    "    print(i,random_list.count(i),random_list.count(i)/100000)"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "5fc84b8b",
   "metadata": {},
   "source": [
    "### 2.4 列表元素的排序sort（）和reserve（）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "id": "5ee560ca",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四']"
      ]
     },
     "execution_count": 48,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list = [\"张三\", \"李四\", \"小明\", \"jalex\", \"李四\"]\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 49,
   "id": "da1994a3",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list.sort()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 50,
   "id": "51fc844c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['jalex', '小明', '张三', '李四', '李四']"
      ]
     },
     "execution_count": 50,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "e1249797",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['李四', '小明', 'Jalex']"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list.reverse()\n",
    "name_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 52,
   "id": "53a2f212",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[20, 18, 19, 21, 22, 30, 17]"
      ]
     },
     "execution_count": 52,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list = [20,18,19,21,22,30,17]\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 54,
   "id": "74b3f0d5",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[17, 18, 19, 20, 21, 22, 30]"
      ]
     },
     "execution_count": 54,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list.sort()\n",
    "age_list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 57,
   "id": "6ee3267e",
   "metadata": {},
   "outputs": [],
   "source": [
    "age_list.reverse()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "id": "5a8f483d",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[30, 22, 21, 20, 19, 18, 17]"
      ]
     },
     "execution_count": 58,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "age_list"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2f6dbb20",
   "metadata": {},
   "source": [
    "### 2.5 copy()\n",
    "* 1.=\n",
    "* 2.copy()\n",
    "* 3.deep copy"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "id": "89ba43ea",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2177891199296\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四']"
      ]
     },
     "execution_count": 72,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\", \"李四\", \"小明\", \"jalex\", \"李四\"]\n",
    "print(id(name_list01))\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "id": "9c643ae4",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2177891199296\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四']"
      ]
     },
     "execution_count": 73,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = name_list01\n",
    "print(id(name_list02))\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 61,
   "id": "33434eb9",
   "metadata": {},
   "outputs": [],
   "source": [
    "name_list01.append('Mary')"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "id": "99c68bea",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四', 'Mary']"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "id": "32dd7ec8",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四', 'Mary']"
      ]
     },
     "execution_count": 63,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "aef8f2d1",
   "metadata": {},
   "source": [
    "* 如上原因：我们不得不找一个方法来实现“真正的”复制"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 77,
   "id": "929a47ef",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2177891201728\n",
      "2177892369296\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四']"
      ]
     },
     "execution_count": 77,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01 = [\"张三\", \"李四\", \"小明\", \"jalex\", \"李四\"]\n",
    "print(id(name_list01))\n",
    "print(id(name_list01[0]))\n",
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 79,
   "id": "2856c48a",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2177891581120\n",
      "2177892369296\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四']"
      ]
     },
     "execution_count": 79,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02 = name_list01.copy() # 加上copy()是真正的复制\n",
    "print(id(name_list02))\n",
    "print(id(name_list02[0]))\n",
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 68,
   "id": "7ee48936",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'李四'"
      ]
     },
     "execution_count": 68,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01.pop() # 01发生改变，02不会随之改变"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 69,
   "id": "f434718c",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex']"
      ]
     },
     "execution_count": 69,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list01"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "id": "a3f39711",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "['张三', '李四', '小明', 'jalex', '李四']"
      ]
     },
     "execution_count": 70,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "name_list02"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "24d82210",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.11.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
